# coding=utf-8
import sys
from mp4 import BigNr
import time
def main():
	reload(sys)
	sys.setdefaultencoding('utf-8')
	mp4 =BigNr()
	f =open('durl.txt','r')
	lines =f.readlines()
	n =0
	for i in lines:
		time.sleep(10)
		n +=1
		print '\033[34;1m正在爬取--> %s   第%s 行数 ing...\033[0m' % (i,n)
		url = mp4.UR(i)#调用UR函数得到网页
		mp4.Nr(url,i)#放入Nr取到信息并存入数据库
if __name__=='__main__':
	main()

